package cn.wonderland.house.service.impl;

import cn.wonderland.house.domain.HousingInformation;
import cn.wonderland.house.mapper.HousingInformationMapper;
import cn.wonderland.house.service.IHousingInformationService;
import cn.wonderland.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 房屋信息表 服务实现类
 * </p>
 *
 * @author wonderland
 * @since 2023-04-26
 */
@Service
public class HousingInformationServiceImpl extends BaseServiceImpl<HousingInformation> implements IHousingInformationService {


    @Autowired
    private HousingInformationMapper mapper;

    @Override
    public void updateHouseStateById(Long id) {
        mapper.updateHouseStateById(id);
    }

    @Override
    public void updateHouseStateToOffRent(Long hId) {
        mapper.updateHouseStateToOffRent(hId);
    }
}
